package com.st.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
//import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@MapperScan("com.st.order.mapper")
//@EnableEurekaClient
@EnableFeignClients//开启Feign
// Eureka 和 Ribbon 整合以后，在消费端，就不需要关系请求服务的 IP地址 和 端口号了，
// 就只需要知道服务名称，直接调用即可
public class OrderApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderApp.class,args);
    }
}
